import java.util.*;

/**
 * @author LKQ
 * @date 2022/4/14 16:30
 * @description 自定义排序
 */
public class Solution2 {
    public static void main(String[] args) {

    }
    public String kthLargestNumber(String[] nums, int k) {
        Arrays.sort(nums, (o1, o2) -> {
            if (o1.length() != o2.length()) {
                return o1.length() - o2.length();
            }else {
               return o1.compareTo(o2);
            }
        });
        return nums[nums.length - k];
    }
}
